package com.yingdong.logic.service;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import com.yingdong.annotation.AutoInvoke;

@Service
public class UserService {
	private static Log logger = LogFactory.getLog(UserService.class);

	@AutoInvoke
	public static void init() {
		logger.info("UserService加载完成");
	}

	public static void onUserCreated(int userId) {
		ResourceService.onUserCreated(userId);
		PetService.onUserCreated(userId);
	}

}
